Skip to content

metric_percentiles: move to a documented public API for managing percentiles - #691

Merged
michael-richey merged 3 commits into
mainfrom
chuck.hagenbuch/metric-percentiles-governance-api
Sep 9, 2026
Merged

metric_percentiles: move to a documented public API for managing percentiles#691
michael-richey merged 3 commits into
mainfrom
chuck.hagenbuch/metric-percentiles-governance-api

Conversation

@chuck

@chuck chuck commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #690.

Description of the Change

Move to a documented public API for managing percentiles.

Verification Process

Ran the unit test suite locally (tox -e py312, tox -e ruff), including new/updated tests in tests/unit/test_metric_percentiles.py.

Additional Notes

This PR was drafted with the assistance of Claude Code.

…entiles

Move to a documented public API for managing percentiles.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chuck
chuck marked this pull request as ready for review September 8, 2026 15:08
@chuck
chuck requested a review from a team as a code owner September 8, 2026 15:08
chuck and others added 2 commits September 8, 2026 13:29
Recorded GET interactions still targeted the legacy list_summaries
endpoint; rewrite them to match the new /api/v2/metrics calls. Also
fix the recorded destination PATCH responses for the update_sync
fixtures: six metrics were genuinely non-configurable in the recorded
org and always came back in the toggle endpoint's "unsuccessful" list,
which the shared test harness's create/update round-trip assertions
don't tolerate. That skip path already has dedicated unit test
coverage, so the fixture now reflects all toggles succeeding.
…tiles integration tests

The destination toggle endpoint always reports HTTP 200 but can silently
decline to configure a metric (unsuccessful array). Some metrics in the
real integration orgs are permanently non-configurable this way, so they
never land in destination state. The shared BaseResourcesTestClass
assertions assume every resource can always be created/updated on the
destination, which doesn't hold here. Override the affected test methods
to count "to be created"/"skipping resource" outcomes as tolerable,
matching the existing tolerance pattern already used by test_resource_sync.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@michael-richey
michael-richey merged commit 5ab7dc2 into main Sep 9, 2026
11 checks passed
@michael-richey
michael-richey deleted the chuck.hagenbuch/metric-percentiles-governance-api branch September 9, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move to a documented public API for managing percentiles

3 participants